-
Notifications
You must be signed in to change notification settings - Fork 321
Add ModelSamplerEstimator for PyMC Marketing model benchmarking #1943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Introduces the ModelSamplerEstimator utility to estimate computational characteristics of PyMC models using JAX/NumPyro, including logp/gradient evaluation time and NUTS step counts. Adds corresponding tests to validate estimator output and schema for simple and multidimensional models.
I have a few PRs, I'll add examples in the notebook on another PR :) |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1943 +/- ##
==========================================
+ Coverage 92.12% 92.18% +0.05%
==========================================
Files 67 67
Lines 8079 8147 +68
==========================================
+ Hits 7443 7510 +67
- Misses 636 637 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@juanitorduz or @williambdean ready for review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some minor comments
@juanitorduz feedback apply! |
🙌 |
Description
Introduces the ModelSamplerEstimator utility to estimate computational time of a PyMC models using JAX/NumPyro, including logp/gradient evaluation time and NUTS step counts. The output should be the minimum sample time from their models. Doing so, users could compare the minimum amount of time that their given model will take.
Adds corresponding tests to validate estimator output and schema for simple and multidimensional models.
Example:
Important
Only working with JAX at the moment.
Related Issue
Checklist
pre-commit.ci autofix
to auto-fix.📚 Documentation preview 📚: https://pymc-marketing--1943.org.readthedocs.build/en/1943/